package cn.zt.feign;

import cn.zt.domain.Bankcard;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient("deposit-service")
public interface FeignBankCard {

    //openfeign(更具银行卡账号进行查询支付密码)
    @GetMapping("/banckcard/getBankCard")
    Bankcard getBankCard(@RequestParam("bankCard")String bankCard);

    //减余额
    @PostMapping("/banckcard/jiBalance")
    int jiBalance(@RequestParam("bankCard")String bankCard,@RequestParam("money")Integer money);

    //赎回
    @PostMapping("/banckcard/jaBalance")
    int jaBalance(@RequestParam("banCard")String bankCard,@RequestParam("money")Integer money);
}
